package com.woniuxy.yuekeuser.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.yuekeuser.model.Income;
import com.woniuxy.yuekeuser.dao.IncomeMapper;
import com.woniuxy.yuekeuser.service.IIncomeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Freedom
 * @since 2020-11-03
 */
@Service
public class IncomeServiceImpl extends ServiceImpl<IncomeMapper, Income> implements IIncomeService {
    @Autowired
    private IncomeMapper incomeMapper;

    @Override
    public IPage<Income> getUserIncome(Page<Income> page, int userId) {
        return incomeMapper.getUserIncome(page, userId);
    }
}
